//
//  DebugRabbitMQManager.h
//  YK_DebugManager
//
//  Created by edward on 2021/1/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DebugRabbitMQManager : NSObject
FOUNDATION_EXTERN NSString * const debug_mq_key;
FOUNDATION_EXTERN NSString * const debug_mq_value;
FOUNDATION_EXPORT NSString * const debug_mq_consumerTag;
FOUNDATION_EXPORT NSString * const debug_mq_exchangeName;
FOUNDATION_EXPORT NSString * const debug_mq_receiveDate;
@property (nonatomic,strong, readonly) NSMutableArray<NSDictionary *> *records;

+ (instancetype)sharedInstance;

/// 保存mq记录
/// @param routingKey mqkey
/// @param mqresult 下发结果
/// @param consumerTag 本机标签
/// @param exchangeName 交换机名称
/// @param receiveDate 下发时间
- (void)saveMQKey:(NSString *)routingKey
         mqresult:(NSData *)mqresult
      consumerTag:(NSString *)consumerTag
     exchangeName:(NSString *)exchangeName
      receiveDate:(NSDate *)receiveDate;

/// 删除记录
/// @param index 删除当前内容
- (void)removeItemAtIndex:(NSInteger)index;

/// 删除所有记录
- (void)removeAllDatas;

@end

NS_ASSUME_NONNULL_END
